﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ZWZ.Web.Codes.UC
{
    [ControlAttr.ControlType("网站导航", "", enum_CtrViewType.页面唯一)]
    public class CtrNavigation<T> : Base.ControlBase
    {
        private bool _showsubmenu = true;

        public IEnumerable<T> DataSource { get; set; }

        [ControlAttr.ControlProperty(enum_AttrType.Bool, enum_AttrGroup.基本属性, "显示子菜单")]
        public bool ShowSubMenu { get { return _showsubmenu; } set { _showsubmenu = value; } }

        /// <summary>
        /// 当前菜单
        /// </summary>
        public T CurrentMenu { get; set; }
    }
}
